package com.ruoqing.auth.service.impl;

import com.ruoqing.auth.dao.UserRoleDao;
import com.ruoqing.auth.service.AuthRoleService;
import com.ruoqing.redis.domain.UserRole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
	* @author YaoXian
	* @title: AuthRoleServiceImpl
	* @projectName ruoxi-blog
	* @description: 若兮微服务 -认证授权中心 - 用户角色业务层实现类
	* @date 2020-12-20 18:02
	*/
@Service
public class AuthRoleServiceImpl implements AuthRoleService {
		
		@Resource
		private UserRoleDao userRoleDao;
		
		public List<UserRole> findRoleByUserId(Long userId) {
				return userRoleDao.findRoleByUserId(userId);
		}
		
		public List<String> findAllRole() {
				return userRoleDao.findAllRole();
		}
}
